/*
package com.lzy.config;

import com.lzy.interceptor.LogInterceptor;
import com.lzy.interceptor.UserInfoInterceptor;
import com.lzy.properties.InterceptorProperties;
import com.lzy.token.DefaultTokenParser;
import com.lzy.token.TokenParser;
import com.lzy.token.manage.TokenManageService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*
 * 日志拦截器配置
 *
 * @author lzy by 2020/8/8 13:37


//@Configuration
//@EnableConfigurationProperties(InterceptorProperties.class)
public class InterceptorAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public LogInterceptor getLogInterceptor() {
        return new LogInterceptor();
    }

    @Bean
    @ConditionalOnMissingBean
    public TokenParser getDefaultTokenParser(TokenManageService tokenManageService) {
        return new DefaultTokenParser(tokenManageService);
    }

    @Bean
    @ConditionalOnMissingBean
    public UserInfoInterceptor getUserInfoInterceptor(TokenParser tokenParser) {
        return new UserInfoInterceptor(tokenParser);
    }


}
*/
